package com.zxs.controller;

import com.zxs.service.IUserService;
import com.zxs.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author zxs
 * @since 2025-02-28
 */
@RestController
@RequestMapping("/user")
public class UserController {
        @Autowired
        private IUserService userService;
        @GetMapping("/list")
        public R list(){
            return R.ok(userService.list());
        }

}
